home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / base-files / profile < prev   
Encoding:
Text File  |  2010-08-06  |  823 b   |  38 lines

  1. # /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
  2. # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
  3.  
  4. if [ "`id -u`" -eq 0 ]; then
  5.   PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  6. else
  7.   PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
  8. fi
  9. export PATH
  10.  
  11. if [ "$PS1" ]; then
  12.   if [ "$BASH" ]; then
  13.     # The file bash.bashrc already sets the default PS1.
  14.     # PS1='\h:\w\$ '
  15.     if [ -f /etc/bash.bashrc ]; then
  16.       . /etc/bash.bashrc
  17.     fi
  18.   else
  19.     if [ "`id -u`" -eq 0 ]; then
  20.       PS1='# '
  21.     else
  22.       PS1='$ '
  23.     fi
  24.   fi
  25. fi
  26.  
  27. # The default umask is now handled by pam_umask.
  28. # See pam_umask(8) and /etc/login.defs.
  29.  
  30. if [ -d /etc/profile.d ]; then
  31.   for i in /etc/profile.d/*.sh; do
  32.     if [ -r $i ]; then
  33.       . $i
  34.     fi
  35.   done
  36.   unset i
  37. fi
  38.